package aygx.spring.boot.principle.entity;

import org.springframework.beans.factory.FactoryBean;

/**
 * @author 暗影孤星
 * @date 2022/7/24 22:59
 * @description
 */
public class PeopleFactoryBean implements FactoryBean<People> {
    @Override
    public People getObject() throws Exception {
        // 可以对该对象做一些初始化动作
        return new People();
    }

    @Override
    public Class<?> getObjectType() {
        return People.class;
    }
}
